import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/mes-abacus/production-report/work-order-progress-page',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};

export const getDetail = (workOrderId) => {
  return request({
    url: '/api/mes-abacus/production-report/work-order-progress-base-info',
    method: 'get',
    params: {
      workOrderId
    }
  });
};

export const getRouteDetail = (workOrderId) => {
  return request({
    url: '/api/mes-abacus/production-report/work-order-progress-route-info',
    method: 'get',
    params: {
      workOrderId
    }
  });
};

export const getProductDetail = (current, size, workOrderId, type) => {
  return request({
    url: '/api/mes-abacus/production-report/page-query/work-order-progress-product-info',
    method: 'get',
    params: {
      workOrderId,
      current,
      size,
      type
    }
  });
};
